from django.conf import settings
import os

if hasattr(settings, 'SITEUPDATE_SHELL'):
    UPDATE_SHELL = settings.SITEUPDATE_SHELL
else:
    UPDATE_SHELL = None

if hasattr(settings, 'SITEUPDATE_COMMAND'):
    UPDATE_COMMAND = settings.SITEUPDATE_COMMAND
else:
    UPDATE_COMMAND = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'update.sh')

if hasattr(settings, 'SITEUPDATE_POSTCOMMAND'):
    UPDATE_POSTCOMMAND = settings.SITEUPDATE_POSTCOMMAND
else:
    UPDATE_POSTCOMMAND = None
